import styles from "./index.module.less";
import LineChart from "./LineChart";
import Table from "./Table";
import ChannelFact from "./ChannelFact";
export default defineComponent({
  setup(props, { expose }) {
    const _this = reactive<any>(getCurrentInstance());
    const initPage = () => {
      _this.refs["ChannelFack"].initPage();
      _this.refs["LineChart"].initPage();
      _this.refs["Table"].initPage();
    };
    expose({ initPage });
    return () => (
      <>
        <div class={styles.container}>
          <tips-card content={$t("channel8")} />
          <ChannelFact onRefreshData={initPage} ref="ChannelFack" />
          <LineChart ref="LineChart" />
          <Table ref="Table" />
        </div>
      </>
    );
  },
});
